﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace BandwidthMonitor
{
    public partial class frmOptions : Form
    {
        public bool m_Ok = false;

        public frmOptions()
        {
            InitializeComponent();
        }

        private void frmOptions_Load(object sender, EventArgs e)
        {
            txtUsername.Text = Properties.Settings.Default.BTUsername;
            txtPassword.Text = Properties.Settings.Default.BTPassword;
        }

        private void cmdOK_Click(object sender, EventArgs e)
        {
            Properties.Settings.Default.BTUsername = txtUsername.Text;
            Properties.Settings.Default.BTPassword = txtPassword.Text;
            Properties.Settings.Default.Save();

            m_Ok = true;

            this.Close();
        }

        private void cmdCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
